package JavaSEAdvance.day01_extends.d011_constructor;

/**
 * @author Xiao
 * @date 2021/7/15
 */
public class NewPhone extends Phone{
    private int weight;
    public NewPhone() {
    }

    public NewPhone(int weight) {
        this.weight = weight;
    }

    public NewPhone(String brand, int price, String color, int weight) {
        super(brand, price, color);
        this.weight = weight;
    }

    @Override
    public void xiaoAi() {
        super.xiaoAi();
        System.out.println("你好，小爱同学！");
    }

    @Override
    public void call(String name) {
        super.call(name);
    }
}
